package com.kuang.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true)//支持链式写法（user.set().set()....）
//分布式环境，实体序列化
public class User implements Serializable {
    private Integer userNo;
    private String userName;
    //区分数据在哪个数据库
    private String dbSource;

    public User(String userName) {
        this.userName = userName;
    }
}
